package com.linzm.behavioraltype.visitor12;

import com.linzm.behavioraltype.visitor12.computer.Computer;
import com.linzm.behavioraltype.visitor12.computer.Keyboard;
import com.linzm.behavioraltype.visitor12.computer.Monitor;
import com.linzm.behavioraltype.visitor12.computer.Mouse;

/**
 * @Author zimingl
 * @Date 2023/4/16 14:10
 * @Description: ComputerPartDisplayVisitor
 */
public class ComputerPartDisplayVisitor implements ComputerPartVisitor {
    @Override
    public void visit(Computer computer) {
        System.out.println("Displaying Computer.");
    }

    @Override
    public void visit(Mouse mouse) {
        System.out.println("Displaying Mouse.");
    }

    @Override
    public void visit(Keyboard keyboard) {
        System.out.println("Displaying Keyboard.");
    }

    @Override
    public void visit(Monitor monitor) {
        System.out.println("Displaying Monitor.");
    }
}
